<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<table class="cntable table table-bordered dataTable table-employee ">
	<thead>
		<tr>
			<th style="width:50px">序号</th>
			<th style="width:130px">客户名称</th>
			<th style="width:130px">类型</th>
			<th style="width:130px">支付方式</th>
			<th style="width:130px">金额(元)</th>
			<th style="width:130px">支付时间</th>
			<th style="width:120px">状态</th>
			<th>备注</th>

		</tr>
	</thead>
	<tbody>
		<c:forEach var="payment" items="${payments}" varStatus="status">
			<tr data-id="${payment.paymentId}" >
				<td>${status.index+1}</td>
				<td>${payment.customer.customerName}</td>
				<td><t:provider packageName="shop" enumClassName="PaymentState" value="${payment.paymentState}"/></td>
			
				<td ><t:provider packageName="shop" enumClassName="PaymentType" value="${payment.type}"/></td>
				<td><fmt:formatNumber value="${payment.amount}" pattern="0.00"></fmt:formatNumber></td>
				<td><fmt:formatDate value="${payment.createDate}" type="date" dateStyle="default" pattern="yyyy-MM-dd HH:mm"/></td>
				<td><t:provider packageName="billing" enumClassName="BillingType" value="${payment.billingType}"/> </td>
				<td>${payment.comment}</td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>